package cn.com.connext.scrm.domain.master;

import cn.com.connext.scrm.web.rest.req.OrderReq;
import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "order_record")
public class OrderRecord extends OrderReq implements UUIDDomain {

    @Id
    private String id;

    @Column(name = "image_url")
    private String imageUrl;//图片

    @Column(name = "order_name")
    private String orderName;//产品名称

    @Column(name ="order_code")
    private String orderCode;//订单号

    @Column(name = "count")
    private Integer count;//兑换数量

    @Column(name = "state")
    private Integer state;//状态 0兑换成功  1已发货  2过期

    @Column(name = "order_time")
    private Date orderTime;//订单时间

    @Column(name = "name")
    private String name;//用户姓名

    @Column(name = "mobile")
    private String mobile;//用户手机号

    @Column(name = "address")
    private String address;//地址

    @Column(name = "member_ship_id")
    private String membershipId;//会员id

    @Column(name = "order_on")
    private String orderON;//物流订单号

    @Column(name = "product_id")
    private String productId;//产品订单号

    @Column(name = "coupon_id")
    private String couponId;//有赞卷id

    @Column(name = "user_id")
    private String userId;//unionId

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "type")
    private Integer type;//0实物 1有赞卷
    @Column(name = "sku_Id")
    private String skuId;//扫描哪个sku中的奖品

    @Column(name = "logistics_code_erp")
    private String logisticsCodeErp;//erp物流编号
    @Column(name = "logistics_name")
    private String logisticsName;//物流公司名称
    @Column(name = "ero_logistics_id")
    private Integer eroLogisticsId;//erp关联id
    @Column(name = "order_type")
    private Integer orderType;//订单类型
    @Column(name = "points")
    private Integer points;//单价积分
    @Column(name = "logistics_address")
    private String logisticsAddress;//物流地址
    @Column(name = "good_type")
    private String goodType;//实物标识
    @Column(name = "logistics_push_state")
    private Integer logisticsPushState;//物流推送状态
    @Column(name = "prize_id")
    private Integer prizeId;//物流推送状态
    @Column(name = "activity_type")
    private Integer activityType;

    //取奖品对应的活动名称
    @Column(name = "activity_name")
    private String activityName;

    //取奖品对应的活动ID
    @Column(name = "activity_id")
    private String activityId;

    public Integer getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Integer prizeId) {
        this.prizeId = prizeId;
    }

    public Integer getLogisticsPushState() {
        return logisticsPushState;
    }

    public void setLogisticsPushState(Integer logisticsPushState) {
        this.logisticsPushState = logisticsPushState;
    }

    public String getGoodType() {
        return goodType;
    }

    public void setGoodType(String goodType) {
        this.goodType = goodType;
    }

    public String getLogisticsAddress() {
        return logisticsAddress;
    }

    public void setLogisticsAddress(String logisticsAddress) {
        this.logisticsAddress = logisticsAddress;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMembershipId() {
        return membershipId;
    }

    public void setMembershipId(String membershipId) {
        this.membershipId = membershipId;
    }

    public String getOrderON() {
        return orderON;
    }

    public void setOrderON(String orderON) {
        this.orderON = orderON;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public String getLogisticsCodeErp() {
        return logisticsCodeErp;
    }

    public void setLogisticsCodeErp(String logisticsCodeErp) {
        this.logisticsCodeErp = logisticsCodeErp;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    public Integer getEroLogisticsId() {
        return eroLogisticsId;
    }

    public void setEroLogisticsId(Integer eroLogisticsId) {
        this.eroLogisticsId = eroLogisticsId;
    }

    public Integer getActivityType() {
        return activityType;
    }

    public void setActivityType(Integer activityType) {
        this.activityType = activityType;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }
}
